package cn.szx.boot.cms.controller;

import cn.szx.boot.cms.jpa.UserJPA;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/")
public class PageController {
    private static final Logger logger = LoggerFactory.getLogger(PageController.class);
    @Autowired
    private UserJPA userJPA;

    @RequestMapping(value = "index")
    public String index(){
        return "index";
    }
    @RequestMapping(value = "about_us")
    public String aboutUs(){//关于我们
        return "page/about_us";
    }
    @RequestMapping(value = "team_info")
    public String info(){ //团队介绍
        return "page/team_info";
    }
    @RequestMapping(value = "join_us")
    public String list(){//加入我们
        return "page/join_us";
    }
    @RequestMapping(value = "list")
    public String course(){//成功案例
        return "page/success_course";
    }
}
